PROGRAMS=sync retval hello
ASM=as -arch i386
LINKER=ld -macosx_version_min 10.6

all: sync retval hello

sync: sync.s
	$(ASM) sync.s -o sync.o
	$(LINKER) sync.o -o sync

retval: retval.s
	$(ASM) retval.s -o retval.o
	$(LINKER) retval.o -o retval

hello: hello.s
	$(ASM) hello.s -o hello.o
	$(LINKER) hello.o -o hello

clean:
	rm -f *.o *~ $(PROGRAMS)
